package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    List<Order> getOrdersByUsername( String username );

    List<Order> getAllOrder();

    void dispatchStatus( Order order );

    void finishStatus( Order order );

    void removeOrders( Order order );

    void removeOrderstatus( Order order );

    void removeLineitem(Order order);

    Order getOrder( int orderId );

    Order getOrderByOutTradeNo( String outTradeId );

    void insertOrder( Order order );

    void insertOrderStatus( Order order );

    void updateOrder( Order order );

    void updateOrderStatus( Order order );

}
